Adding Active Server Pages |
What are Active Server Pages? |
Displaying Date, Time, and Text |
Using Counters, Variables, and Forms |
Displaying Server Statistics |
Active Server Pages Server-Side Scripting Programmer's Reference |
Active Server Pages (ASPs) are Web pages that contain server-side scripts in addition to the usual mixture of text and HTML (Hypertext Markup Language) tags. Server-side scripts are special commands you put in Web pages that are processed before the pages are sent from your Personal Web Server to the Web browser (such as Microsoft Internet Explorer) of someone who's visiting your Web site.
As explained in URL Basics, when you type a URL in the Address box or click a link on a Web page, you're asking a Web server on a computer somewhere to send a file to the Web browser (sometimes called a "client") on your computer. If that file is a normal HTML file, it looks exactly the same when your Web browser receives it as it did before the Web server sent it. After receiving the file, your Web browser displays its contents as a combination of text, images, and sounds.
In the case of an Active Server Page, the process is similar, except there's an extra processing step that takes place just before the Web server sends the file. Before the Web server sends the Active Server Page to the Web browser, it runs all server-side scripts contained in the page. Some of these scripts display the current date, time, and other information. Others process information the user has just typed into a form, such as a page in the Web site's guestbook.
To distinguish them from normal HTML pages, Active Server Pages are traditionally given the ".asp" extension. This isn't required, but it's a good idea.
Many of the HTML files included with your Personal Web Server are in fact Active Server Pages. As you learn how to create your own Active Server Pages, you may find it helpful to look at the contents of these files and figure out how they work.
For Nonprogrammers
Return to top |